package com.lkd.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 点位表
 * </p>
 *
 * @author LKD
 */
@Data
  @EqualsAndHashCode(callSuper = false)
@TableName(value = "tb_node",autoResultMap = true,resultMap = "nodeMap")
public class NodeEntity implements Serializable {


      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      /**
     * 点位名称
     */
      @TableField("name")
    private String name;

      /**
     * 点位详细地址
     */
      @TableField("addr")
    private String addr;

      /**
     * 所在区域Id
     */
      @TableField("area_code")
    private String areaCode;

      /**
     * 创建人id
     */
      @TableField("create_user_id")
    private Integer createUserId;

      /**
     * 区域id
     */
      @TableField("region_id")
    private Long regionId;

      /**
     * 商圈id
     */
      @TableField("business_id")
    private Integer businessId;

      /**
     * 点位主Id
     */
      @TableField("owner_id")
    private Integer ownerId;

      /**
     * 点位主名称
     */
      @TableField("owner_name")
    private String ownerName;

      /**
     * 更改时间
     */
        @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
      private LocalDateTime updateTime;

      /**
     * 创建时间
     */
        @TableField(value = "create_time", fill = FieldFill.INSERT)
      private LocalDateTime createTime;


        @TableField(exist = false)//数据库没有这个字段
        private Integer vmCount;
        @TableField(exist = false)//数据库没有这个字段
        private BusinessTypeEntity businessType;
        @TableField(exist = false)//数据库没有这个字段
        private RegionEntity region;

}
